<?php if(!defined('PATH')) exit();
$list = $list->fetchAll();
if (count($list) > 0) {
	$message = '
	<a href="' . PATH . '/highscores/experience/">experience</a> |
	<a href="' . PATH . '/highscores/magic/">magic</a> |
	<a href="' . PATH . '/highscores/fist/">fist</a> |
	<a href="' . PATH . '/highscores/sword/">sword</a> |
	<a href="' . PATH . '/highscores/club/">club</a> |
	<a href="' . PATH . '/highscores/axe/">axe</a> |
	<a href="' . PATH . '/highscores/distance/">distance</a> |
	<a href="' . PATH . '/highscores/shielding/">shielding</a> |
	<a href="' . PATH . '/highscores/fishing/">fishing</a>
	';
	$message = preg_replace('/>'.$this->paramsURI[1].'</', '><b>'.$this->paramsURI[1].'</b><', $message);
?>

<?=$this->archez->showMsg($message, 'skills')?>
<br /><table border="0" cellpadding="8" cellspacing="1" width="100%">
<tr class="head"><td width="5%"><b>#</b></td><td><b>Name</b></td><td width="20%"><b>Status</b></td><td width="15%"><b>Level</b></td></tr>
<?php
	$i = 1 + $offset;
	foreach($list as $row)
	{
?>

	<tr><td><?=$i?>.</td><td><a href="<?=PATH?>/search/check/<?=urlencode(strtolower($row['name']))?>/"><?=$row['name']?></a></td><td><span style="color:<?=$this->archez->getStatus($row['online'] + 2)?>"><?=$this->archez->getStatus($row['online'])?></span></td><td><?=$row['value']?></td></tr>
<?php
		$i++;
	}
?>
 </table>
<?php
	if ($prev_page) {
?>
<div class="row" style="float: left; line-height: 30px; vertical-align: middle; padding-left: 8px; padding-right: 8px; margin-left: 1px;"><a href="<?=PATH?>/highscores/<?=$this->paramsURI[1]?>/<?=$page-1?>/">Previous Page</a></div>
<?php
	}
	if ($next_page) {
?>
<div class="row" style="float: right; line-height: 30px; vertical-align: middle; padding-left: 8px; padding-right: 8px; margin-right: 1px;"><a href="<?=PATH?>/highscores/<?=$this->paramsURI[1]?>/<?=$page+1?>/">Next Page</a></div>
<?php
	}
} else {
	$this->archez->showMsg('No one is registered on <b>'.$this->config['server']['name'].'</b>.', 'notice');
}
?>